package com.tedu._04mybatis.mapper;

import com.tedu._04mybatis.pojo.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface UserMapper {

    int insert(User user);


    int deleteUserById(Integer id);


    int updateUserById(User user);


    User selectUserById(Integer id);


    List<User> selectAllUser();

    int dynamicUpdateUser(User user);

    int dynamicDeleteUserById(Integer[] ids);

    int dynamicDeleteUserById2(List<Integer> ids);

    int countUser();

}
